package com.gjintel.business.web.dto;

import java.util.List;

public class MenuDto {
	private String name;
	private List<MenuDto> submenu;
	private String url;
	private String menuId;

	public MenuDto() {
		super();
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj != null){
			MenuDto dto = (MenuDto)obj;
			if(this.name.equals(dto.getName()) && this.menuId.equals(dto.getMenuId())){
				return true;
			}
		}
		return false;
	}
	
	@Override
	public int hashCode() {
		return this.name.hashCode();
	}
	
	public MenuDto(String name, List<MenuDto> submenu, String url,String menuId) {
		super();
		this.name = name;
		this.submenu = submenu;
		this.url = url;
		this.menuId = menuId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<MenuDto> getSubmenu() {
		return submenu;
	}

	public void setSubmenu(List<MenuDto> submenu) {
		this.submenu = submenu;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}


}
